# coding:utf-8
import uuid

PRO_MONGO_HOST = 'mongodb://root:Boluome123@mongo-m.localdomain,mongo-s.localdomain,mongo-s2.localdomain/?authSource=admin&replicaSet=foba&readPreference=secondaryPreferred'
STG_MONGO_HOST = 'mongodb://root:Boluome123@192.168.2.3,192.168.2.4/?authSource=admin&replicaSet=foba&readPreference=secondaryPreferred'
DEV_MONGO_HOST = 'mongodb://root:Boluome123@192.168.0.7,192.168.0.10/?authSource=admin&replicaSet=foba&readPreference=secondaryPreferred'
CTRIP_MONGO_HOST = 'mongodb://root:Boluome123@192.168.0.14/?authSource=admin&replicaSet=foba&readPreference=secondaryPreferred'
STATIC_MONGO_HOST = 'mongodb://root:Boluome123@staticmongo-m.localdomain,staticmongo-s1.localdomain,staticmongo-s2.localdomain/?authSource=admin&replicaSet=foobar&readPreference=secondaryPreferred'
PRO_MONGO_HOST_MASTER = 'mongodb://root:Boluome123@mongo-m.localdomain/'
PRO_COLD_MONGO_HOST = 'mongodb://blm:Blm12345@192.168.1.155:27017,192.168.1.156:27017,192.168.1.154:27017/?replicaSet=foobar&authSource=admin'

DEV_REDIS_MAST_HOST = '192.168.0.11'
DEV_REDIS_PAYM_HOST = '192.168.0.3'
DEV_REDIS_NEW_HOST = '192.168.0.6'
STG_REDIS_MAST_HOST = '192.168.2.6'
STG_REDIS_NEW_HOST = '192.168.2.6'
PRO_REDIS_MAST_HOST = '192.168.1.9'
# ZABBIX_REDIS_HOST = '192.168.1.70'
ZABBIX_REDIS_HOST = '192.168.0.67'
PRO_REDIS_PAYM_HOST = '192.168.1.11'

ALIYUN_REDIS_MAST_HOST = '39.100.9.98'
ALIYUN_REDIS_PORT = 16379
PR0_PAYMENT_REDIS_HOST = 'paymentredis-rw.localdomain'
PR0_ACTIVITY_REDIS_HOST = 'activityredis.localdomain'
DPP_REDIS_HOST = 'dppredis.localdomain'
PRO_REDIS_HOST = '192.168.1.9'
STG_REDIS_HOST = '192.168.2.6'
DEV_REDIS_HOST = '192.168.0.6'
REDIS_PORT = 6379
REDIS_DB = 1
REDIS_DB_0 = 0
REDIS_DB_1 = 1
REDIS_DB_2 = 2
REDIS_DB_4 = 4
REDIS_DB_7 = 7

REDIS_ACTIVITY_HOST = '192.168.2.6'
REDIS_PAYMENT_HOST = '192.168.0.3'
REDIS_ACTIVITY_PORT = 6379
REDIS_ACTIVITY_DB = 0
REDIS_ACTIVITY_SCRATCH_DB = 3

RRDB_HOST = '192.168.2.6'
PRO_RRDB_HOST = 'rrdb.localdomain'
STG_RRDB_HOST = '192.168.2.6'
DEV_RRDB_HOST = '192.168.0.6'
RRDB_PORT = 16379
RRDB_DB_10 = 10

# 生产集群rabbitmq信息
RABBITMQ_URL_MASTER = 'http://192.168.1.253:15672'
RABBITMQ_USER_PASSED = ('blm', 'blm123')
RABBITMQ_STANDALONE_URL = '/api/healthchecks/node/{}'
RABBITMQ_NODES_URL = '/api/nodes'

PG_BOLUOME = "host=192.168.1.13 dbname=boluome user=boluome password=Boluome123"
DEV_PG_ACCOUNT = "host=192.168.0.8 dbname={} user=root password=Boluome123"
STG_PG_ACCOUNT = "host=192.168.2.10 dbname={} user=root password=Boluome123"
PRO_PG_ACCOUNT = "host=192.168.1.13 dbname={} user=root password=Boluome123"

# MQ_BROKER = "amqp://blm:Blm123@dppmq.localdomain//"
MQ_BROKER = 'amqp://blm:blm123@192.168.0.67//'

# rabbimq 队列
MQ_YUNWEI_COMPLAINT = 'yunwei_complaint_tasks'
MQ_CONVERSION_RATE = 'yunwei_conversion_rate_tasks'
MQ_STATUS_MONNITOR = 'yunwei_mq_status_monitor_tasks'
MQ_MONGODB_FETCH_SLOW = 'yunwei_mongodb_fetch_slow_tasks'
MQ_ELK_REQUEST_STATUS = 'yunwei_elk_request_status_tasks'
MQ_MONGODB_SHARDING = 'yunwei_mongodb_sharding_tasks'

############# 企业微信配置文件 ###############################
WEIXIN_TOUSER = '@all'
WEIXIN_AGENTID = 1000002
WEIXIN_CORPID = 'ww5254cce7701929d4'
WEIXIN_CORPSECRET = 'N1_47A_qR5e-BTYPxSxR6aFd_lI1k5oBeRBU7RfK8hY'
WEIXIN_URL = 'https://qyapi.weixin.qq.com'
############################################################
############# 钉钉 ###################################
DINGDING_URL = 'https://oapi.dingtalk.com/robot/send?access_token=1be9f34da7f36f59c44150c2526ae3f0b456af52b085cef23936d9d478470a90'
#####################################################

# qingyun
QINGYUN_REGION_ID = 'pek3a'
QINGYUN_ACCESS_KEY_ID = 'NVZXMHPSPKAKKYOTADQZ'
QINGYUN_SECRET_ACCESS_KEY = '38SBm8EVk6N138NG9sriqp7h2VOEqXpuKnx5Dyag'